<? global $cat, $cat1,$cat2, $lg, $hotel, $room, $FullUrl; ?>
<?
	function pSession($name)
	{
		//echo $_SESSION[$name];
		if(isset($_SESSION["$name"]) && $_SESSION["$name"] != '')	
			return $_SESSION["$name"];
		
		return '';	
	}
?>
<div class="thongtinkhachhang"> <img src="<?=$FullUrl?>/images/xacnhan-top.png" class="floatleft" />
  <div class="content-thong">
    <ul>
      <li><strong>Tên khách sạn:</strong> <?=pSession('name_'.$lg)?></li>
      <li><strong>Loại Phòng:</strong> <?=pSession('room_name_vn')?> <?=pSession('type_room')?></li>
      <li><strong>Họ tên:</strong> <?=pSession('name')?></li>
      <li><strong>Địa chỉ:</strong> <?=pSession('address')?></li>
      <li><strong>Điện thoại:</strong> <?=pSession('phone')?></li>
      <li><strong>Email:</strong> <?=pSession('email')?></li>
      <li><strong>Ngày đến:</strong> <?=FormatDate(pSession('datepickerbegin'))?></li>
      <li><strong>Ngày đi:</strong> <?=FormatDate(pSession('datepickerend'))?></li>
      <li><strong>Số lượng phòng:</strong> <?=pSession('num_room')?></li>
      <?
      	if(pSession('children_under_six')){
	  ?><li><strong>Trẻ em dưới 6:</strong> <?=pSession('children_under_six')?> (Miễn phí)</li><? } ?>
      <?
      	if(pSession('children_over_six')){
	  ?>
      <li><strong>Trẻ em trên 6:</strong> <?=pSession('children_over_six')?> <?=( pSession('children_over_six') > 1 ? '(Phụ thu thêm '.pSession('extrabed').'$/trẻ)' : '')?></li><? } ?>
      <li><strong>Ghi chú:</strong><br/> <?=pSession('note_hotel')?></li>
    </ul>
  </div>
  <img src="<?=$FullUrl?>/images/xacnhan-bt.png" class="floatleft" /> </div>
<h3 class="title-xacnhan">Chọn hình thức thanh toán</h3>
<div class="floatleft">
    <table width="710" style="margin-top:30px;">
      <tr>
        <td style="padding-left:20px;"><label>
           
    <div style="margin:20px; float:left;"> <a href="<?=$FullUrl?>/index.php?do=orders&act=paymented&type=nganluong">
    	<img src="https://www.nganluong.vn/webskins/skins/nganluong/images/CertifiedLogo-gr.png"  border="0" alt="Ngân Lượng" title="Ngân Lượng"/></a>
    </div>
    </label></td>
        <td><label>
        
    <div style="margin:20px; float:left;"><a href= "<?=$FullUrl?>/index.php?do=orders&act=paymented&type=baokim">
    <img src="https://www.baokim.vn/application/uploads/buttons/btn_pay_now_3.png" title="Bảo Kim" alt="Bảo Kim"/></a>
    </div></label></td>
        <td><label>
        <a href= "<?=$FullUrl?>/index.php?do=orders&act=paymented&type=atm">
        <img src="<?=$FullUrl?>/images/smartlink.jpg" width="150px" height="150px" alt="ATM" title="ATM"/><br/>
            Thanh Toán Qua Thẻ ATM <br/>(Ngân Hàng)
            </a></label></td>
      </tr>
    </table>
  </form>
  <table width="678" cellpadding="0" cellspacing="0" style="margin-top:20px;margin-left:20px;">
    <tr>
      <td class="titletd" style="text-align: center">STT</td>
      <td class="titletd" style="text-align: center">Loại phòng</td>
      <td class="titletd" style="text-align: center">Đơn giá (giá + extrabed)</td>
      <td class="titletd" style="text-align: center">Số phòng</td>
      <td class="titletd" style="text-align: center">Số đêm</td>
      <td class="titletd" style="text-align: center">Thành tiền</td>
    </tr>
    <tr>
      <td style="text-align: center">1</td>
      <td style="text-align: center"><?=pSession('name_vn')?><br/><?=pSession('room_name_vn')?><br/><?=pSession('type_room')?></td>
      <td style="text-align: center"><?=pSession('don_gia')?>$</td>
      <td style="text-align: center"><?=pSession('num_room')?></td>
      <td style="text-align: center"><?=pSession('num_day')?></td>
      <td style="text-align: center"><?=pSession('total')?>$</td>
    </tr>
    <tr>
      <td style="text-align: center"></td>
      <td style="text-align: center"></td>
      <td style="text-align: center"></td>
      <td style="text-align: center"></td>
      <td style="text-align: right; padding-right:10px;" colspan="2"><strong>Tổng giá: <?=number_format(pSession('cost'))?> VNĐ</strong></td>
    </tr>
    <tr>
      <td style="text-align: left" colspan="3"><i>*Tỷ giá đổi ngoại tệ: <?=number_format(pSession('ty_gia'))?> VNĐ</i></td>
      <td style="text-align: center"></td>
      <td style="text-align: center"></td>
      <td style="text-align: center"></td>
    </tr>
    <?
    	if(pSession('children_over_six'))
		{
	?>
    <tr>
      <td style="text-align: left" colspan="3"><i>*Phụ thu thêm <?=$_SESSION['extrabed']?>$/trẻ em</i></td>
      <td style="text-align: center"></td>
      <td style="text-align: center"></td>
      <td style="text-align: center"></td>
    </tr>
    <?
		}
	?>
  </table>
</div>
